<?php

namespace app\models\base;

use Yii;

/**
 * This is the model class for table "chindor_letter".
 *
 * @property string $id
 * @property integer $log_id
 * @property integer $user_id
 * @property string $is_read
 * @property integer $disabled
 */
class Letter extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'chindor_letter';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['log_id', 'user_id', 'disabled'], 'integer'],
            [['is_read'], 'string']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'log_id' => 'Log ID',
            'user_id' => 'User ID',
            'is_read' => 'Is Read',
            'disabled' => 'Disabled',
        ];
    }
}
